package aaa.bbb;

import com.android.monkeyrunner.MonkeyDevice;
import com.android.monkeyrunner.adb.AdbBackend;

import android.app.Activity;
import android.os.Bundle;

public class HelperActivity extends Activity {
	private boolean show = true;
	/** Called when the activity is first created. */
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);

        demo();
//        final EditText et = (EditText)findViewById(R.id.editText);
//        et.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
        
//        ImageView eye = (ImageView)findViewById(R.id.eye);
//        eye.setOnClickListener(new android.view.View.OnClickListener() {
//			@Override
//			public void onClick(View v) {
//				if (show) et.setInputType(InputType.TYPE_CLASS_TEXT);
//				else et.setInputType(InputType.TYPE_TEXT_VARIATION_PASSWORD);
//				show = !show;
//			}
//        });
    }
    
    public void demo()
    {
       AdbBackend ab = new AdbBackend();
       MonkeyDevice device = (MonkeyDevice) ab.waitForConnection();
       //Print Device Name
       System.out.println(device.getProperty("build.model"));
       device.dispose();
    }

}